package com.xiaoc.bulldozer.common.model;

import java.io.Serializable;
/**
 * 账号信息
 *
 * @author Danfo Yam
 * @date 2018-08-24 15:47:58
 */
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer SYSTEM_ID = 1;

    /**
     * 没有关联微信，userId 默认-1
     */
    public static final Integer NO_WEIXIN_USERID = -1;

    /**
     * 自增ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 渠道经理账号ID
     */
    private Integer managerAccountId;

    /**
     * 父账号ID
     */
    private Integer parentAccountId;

    /**
     * 类型 1为用户, 2为渠道经理, 3为平台
     */
    private Integer type;

    private Integer isValid;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String phoneNumber;

    /**
     * 城市ID
     */
    private Integer cityId;

    /**
     * 区县ID
     */
    private Integer regionId;


    /**
     * 用户照片
     */
    private String photoUrl;

    private String channelCode;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 用户归属人ID
     */
    private Integer ownerAccountId;

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getManagerAccountId() {
        return managerAccountId;
    }

    public void setManagerAccountId(Integer managerAccountId) {
        this.managerAccountId = managerAccountId;
    }

    public Integer getParentAccountId() {
        return parentAccountId;
    }

    public void setParentAccountId(Integer parentAccountId) {
        this.parentAccountId = parentAccountId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getOwnerAccountId() {
        return ownerAccountId;
    }

    public void setOwnerAccountId(Integer ownerAccountId) {
        this.ownerAccountId = ownerAccountId;
    }
}
